package net.esj.basic.dao.ann.model;

import net.esj.basic.dao.ann.component.column.AbstractColumn;

public class BasicField {

	private AbstractColumn field;
	
	private Object value;
	
	private UPDATE_STATE state= UPDATE_STATE.NEEDNOT_UPDATE;

	public AbstractColumn getField() {
		return field;
	}

	public void setField(AbstractColumn field) {
		this.field = field;
	}

	public Object getValue() {
		return value;
	}

	public void setValue(Object value) {
		this.value = value;
		this.state = UPDATE_STATE.NEED_UPDATE;
	}
	
	public UPDATE_STATE getState() {
		return state;
	}

	public void setState(UPDATE_STATE state) {
		this.state = state;
	}



	public static enum UPDATE_STATE{
		NEED_UPDATE,
		NEEDNOT_UPDATE
	}
}
